﻿#pragma once

#include <QDialog>
#include "ui_BrightnessExposureContrastSaturationShaderDialog.h"

class BrightnessExposureContrastSaturationShaderDialog : public QDialog
{
	Q_OBJECT
signals:
	void sendBrightnessExposureContrastSaturation(float brightness, float exposure, float contrast, float saturation);
public slots:
	void OnBrightnessValueChagned(double value);
	void OnExposureValueChagned(double value);
	void OnContrastValueChagned(double value);
	void OnSaturationValueChagned(double value);
	void OnStart();
public:
	BrightnessExposureContrastSaturationShaderDialog(QWidget* parent = nullptr);
	~BrightnessExposureContrastSaturationShaderDialog();

private:
	Ui::BrightnessExposureContrastSaturationShaderDialog ui;
	//亮度、曝光度、对比度、饱和度
	float brightness = 0.0f;// 亮度 (-1.0~1.0)，默认0.0f表示不调节亮度
	float exposure = 0.0;//曝光 (-1.0~1.0),默认0.0f表示不调节曝光度
	float contrast = 1.0f;//对比度 (0.0~2.0, 默认1.0)默认1.0表示不调节
	float saturation = 1.0f;//饱和度 (0.0~2.0, 默认1.0),默认1.0表示不调节饱和度
};
